package defpackage; import cn.wps.moffice.main.ad.s2s.CommonBean; import com.appsflyer.share.Constants; import com.iflytek.cloud.SpeechEvent; import java.util.ArrayList; import java.util.Iterator; import org.apache.commons.httpclient.cookie.CookiePolicy; /* renamed from: vr reason: default package */ public final class vr { id Yb; acc Yc = acc.k(this.Yb.jo()); coj auw; eud aux; agy auy; public vr(id idVar, coj coj, eud eud, bvj bvj) { this.Yb = idVar; this.auw = coj; this.aux = eud; agz agz = idVar.KY; if (agz == null) { agz = new aiv(idVar); idVar.KY = agz; this.auy = agz.nb(); if (bvj != null && bvj.width() > 0 && bvj.height() > 0) { this.auy.b(new bvk((float) bvj.left, (float) bvj.top, (float) bvj.right, (float) bvj.bottom)); } } this.auy = agz.nb(); } private static void a(coj coj, int i) { coj.N(Constants.URL_CAMPAIGN, CommonBean.new_inif_ad_field_style); coj.r("val", i); coj.O(Constants.URL_CAMPAIGN, CommonBean.new_inif_ad_field_style); } private static void a(coj coj, boolean z) { coj.N(Constants.URL_CAMPAIGN, "roundedCorners"); coj.i("val", z); coj.O(Constants.URL_CAMPAIGN, "roundedCorners"); } public final boolean np() { String str; String str2; String str3; int i = 100; String str4 = null; int i2 = 0; this.auw.startDocument(); this.auw.N(Constants.URL_CAMPAIGN, "chartSpace"); this.auw.M(Constants.URL_CAMPAIGN, "http://schemas.openxmlformats.org/drawingml/2006/chart"); this.auw.M("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); this.auw.M("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); if (this.Yc.tF()) { coj coj = this.auw; boolean gQ = this.Yc.gQ(); coj.N(Constants.URL_CAMPAIGN, "date1904"); coj.i("val", gQ); coj.O(Constants.URL_CAMPAIGN, "date1904"); } if (this.Yc.tH()) { coj coj2 = this.auw; String tG = this.Yc.tG(); coj2.N(Constants.URL_CAMPAIGN, "lang"); coj2.J("val", tG); coj2.O(Constants.URL_CAMPAIGN, "lang"); } if (this.Yc.tJ()) { a(this.auw, this.Yc.tI()); } else { a(this.auw, false); } if (this.Yc.tU() || this.Yc.tW()) { Integer valueOf = this.Yc.tU() ? Integer.valueOf(this.Yc.tT()) : null; Integer valueOf2 = this.Yc.tW() ? Integer.valueOf(this.Yc.tV()) : null; coj coj3 = this.auw; coj3.N("mc", "AlternateContent"); coj3.M("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); if (valueOf != null) { coj3.N("mc", "Choice"); coj3.J("Requires", "c14"); coj3.M("c14", "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"); coj3.N("c14", CommonBean.new_inif_ad_field_style); coj3.r("val", valueOf.intValue() + 100); coj3.O("c14", CommonBean.new_inif_ad_field_style); coj3.O("mc", "Choice"); } if (valueOf2 != null) { coj3.N("mc", "Fallback"); a(coj3, valueOf2.intValue()); coj3.O("mc", "Fallback"); } coj3.O("mc", "AlternateContent"); } else if (this.Yc.tL()) { a(this.auw, this.Yc.tK()); } if (this.Yc.gV()) { coj coj4 = this.auw; enr tM = this.Yc.tM(); coj4.N(Constants.URL_CAMPAIGN, "clrMapOvr"); coj4.J("bg1", eue.bqV.get(Integer.valueOf(tM.Xm()))); coj4.J("tx1", eue.bqV.get(Integer.valueOf(tM.Xq()))); coj4.J("bg2", eue.bqV.get(Integer.valueOf(tM.Xo()))); coj4.J("tx2", eue.bqV.get(Integer.valueOf(tM.Xs()))); coj4.J("accent1", eue.bqV.get(Integer.valueOf(tM.Xu()))); coj4.J("accent2", eue.bqV.get(Integer.valueOf(tM.Xw()))); coj4.J("accent3", eue.bqV.get(Integer.valueOf(tM.Xy()))); coj4.J("accent4", eue.bqV.get(Integer.valueOf(tM.XA()))); coj4.J("accent5", eue.bqV.get(Integer.valueOf(tM.XC()))); coj4.J("accent6", eue.bqV.get(Integer.valueOf(tM.XE()))); coj4.J("hlink", eue.bqV.get(Integer.valueOf(tM.XG()))); coj4.J("folHlink", eue.bqV.get(Integer.valueOf(tM.XI()))); coj4.O(Constants.URL_CAMPAIGN, "clrMapOvr"); } if (this.Yc.gR()) { wg wgVar = new wg(this.auw, this.Yc.gS()); wgVar.auw.N(Constants.URL_CAMPAIGN, "pivotSource"); wgVar.auw.N(Constants.URL_CAMPAIGN, "name"); wgVar.auw.addText(wgVar.anH.name()); wgVar.auw.O(Constants.URL_CAMPAIGN, "name"); wgVar.auw.N(Constants.URL_CAMPAIGN, "fmtId"); wgVar.auw.r("val", wgVar.anH.wg()); wgVar.auw.O(Constants.URL_CAMPAIGN, "fmtId"); wgVar.auw.O(Constants.URL_CAMPAIGN, "pivotSource"); } if (this.Yc.tO()) { coj coj5 = this.auw; ace tN = this.Yc.tN(); coj5.N(Constants.URL_CAMPAIGN, "protection"); coj5.i("chartObject", tN.ug()); coj5.i(SpeechEvent.KEY_EVENT_RECORD_DATA, tN.uh()); coj5.i("formatting", tN.ui()); coj5.i("selection", tN.uj()); coj5.i("userInterface", tN.uk()); coj5.O(Constants.URL_CAMPAIGN, "protection"); } vq vqVar = new vq(this.auw, this.Yb.ha(), this.aux, this.auy); vqVar.auw.N(Constants.URL_CAMPAIGN, "chart"); if (vqVar.KL.gy() && (!vqVar.KL.rY() || !vqVar.KL.rX())) { abt qe = vqVar.KL.qe(); wb wbVar = new wb(); wbVar.type = 24; wbVar.auE = vqVar.auy; new zy(vqVar.auw, qe, vqVar.aux, wbVar).nq(); } if (vqVar.KL.rY()) { vp.a(vqVar.auw, "autoTitleDeleted", vqVar.KL.rX()); } if (vqVar.KL.sa()) { wy wyVar = new wy(vqVar.auw, vqVar.KL.rZ(), vqVar.aux); wyVar.auw.N(Constants.URL_CAMPAIGN, "pivotFmts"); ArrayList arrayList = new ArrayList(); wyVar.auI.c(arrayList); Iterator it = arrayList.iterator(); while (it.hasNext()) { acs acs = (acs) it.next(); wyVar.auw.N(Constants.URL_CAMPAIGN, "pivotFmt"); int jE = acs.jE(); wyVar.auw.N(Constants.URL_CAMPAIGN, "idx"); wyVar.auw.r("val", jE); wyVar.auw.O(Constants.URL_CAMPAIGN, "idx"); if (acs.ql()) { new eth(acs.qk(), wyVar.aux, Constants.URL_CAMPAIGN, "spPr").a(wyVar.auw); } if (acs.qn()) { new etx(acs.qm(), wyVar.aux, Constants.URL_CAMPAIGN, "txPr").a(wyVar.auw); } if (acs.kG()) { new ww(wyVar.auw, acs.kH(), wyVar.aux).nq(); } if (acs.vg()) { new vu(wyVar.auw, acs.we(), wyVar.aux).nq(); } wyVar.auw.O(Constants.URL_CAMPAIGN, "pivotFmt"); } wyVar.auw.O(Constants.URL_CAMPAIGN, "pivotFmts"); } if (vqVar.KL.sc()) { wn wnVar = new wn(vqVar.auw, vqVar.KL.sb()); wnVar.auw.N(Constants.URL_CAMPAIGN, "view3D"); if (wnVar.aol.ut()) { int us = wnVar.aol.us(); wnVar.auw.N(Constants.URL_CAMPAIGN, "rotX"); if (us < -90 || us > 90) { us = 0; } wnVar.auw.r("val", us); wnVar.auw.O(Constants.URL_CAMPAIGN, "rotX"); } if (wnVar.aol.uv()) { int uu = wnVar.aol.uu(); wnVar.auw.N(Constants.URL_CAMPAIGN, "hPercent"); if (uu < 5 || uu > 500) { uu = 100; } wnVar.auw.r("val", uu); wnVar.auw.O(Constants.URL_CAMPAIGN, "hPercent"); } if (wnVar.aol.ux()) { int uw = wnVar.aol.uw(); wnVar.auw.N(Constants.URL_CAMPAIGN, "rotY"); if (uw >= 0 && uw <= 360) { i2 = uw; } wnVar.auw.r("val", i2); wnVar.auw.O(Constants.URL_CAMPAIGN, "rotY"); } if (wnVar.aol.uz()) { int uy = wnVar.aol.uy(); wnVar.auw.N(Constants.URL_CAMPAIGN, "depthPercent"); if (uy >= 20 && uy <= 2000) { i = uy; } wnVar.auw.r("val", i); wnVar.auw.O(Constants.URL_CAMPAIGN, "depthPercent"); } if (wnVar.aol.uB()) { vp.a(wnVar.auw, "rAngAx", wnVar.aol.uA()); } if (wnVar.aol.uD()) { int uC = wnVar.aol.uC(); wnVar.auw.N(Constants.URL_CAMPAIGN, "perspective"); if (uC < 0 || uC > 240) { uC = 30; } wnVar.auw.r("val", uC); wnVar.auw.O(Constants.URL_CAMPAIGN, "perspective"); } wnVar.auw.O(Constants.URL_CAMPAIGN, "view3D"); } if (vqVar.KL.se()) { vqVar.a("floor", vqVar.KL.sd()); } if (vqVar.KL.sg()) { vqVar.a("sideWall", vqVar.KL.sf()); } if (vqVar.KL.si()) { vqVar.a("backWall", vqVar.KL.sh()); } xf xfVar = new xf(vqVar.auw, vqVar.Yd.gB(), vqVar.aux, vqVar.auy); xfVar.auw.N(Constants.URL_CAMPAIGN, "plotArea"); if (xfVar.LB.oA()) { if (!xfVar.LB.tx()) { xfVar.auw.N(Constants.URL_CAMPAIGN, "layout"); xfVar.auw.O(Constants.URL_CAMPAIGN, "layout"); } else { aco ke = xfVar.LB.ke(); wb wbVar2 = new wb(); wbVar2.auE = xfVar.auy; wbVar2.type = 20; new wa(xfVar.auw, ke, wbVar2).write(Constants.URL_CAMPAIGN); } } if (xfVar.Ye.hc().size() > 0) { xfVar.a(xfVar.Ye.hc()); } if (xfVar.Ye.gL().size() > 0) { xfVar.a(xfVar.Ye.gL()); } if (xfVar.LB.jj()) { xc xcVar = new xc(xfVar.auw, xfVar.LB.tu(), xfVar.aux); xcVar.auw.N(Constants.URL_CAMPAIGN, "dTable"); if (xcVar.Lx.jd()) { vp.a(xcVar.auw, "showHorzBorder", xcVar.Lx.ro()); } if (xcVar.Lx.je()) { vp.a(xcVar.auw, "showVertBorder", xcVar.Lx.rp()); } if (xcVar.Lx.jg()) { vp.a(xcVar.auw, "showOutline", xcVar.Lx.rq()); } if (xcVar.Lx.jf()) { vp.a(xcVar.auw, "showKeys", xcVar.Lx.rr()); } if (xcVar.Lx.ql()) { new eth(xcVar.Lx.qk(), xcVar.aux, Constants.URL_CAMPAIGN, "spPr").a(xcVar.auw); } if (xcVar.Lx.qn()) { new etx(xcVar.Lx.qm(), xcVar.aux, Constants.URL_CAMPAIGN, "txPr").a(xcVar.auw); } xcVar.auw.O(Constants.URL_CAMPAIGN, "dTable"); } if (xfVar.LB.ql()) { new eth(xfVar.LB.qk(), xfVar.aux, Constants.URL_CAMPAIGN, "spPr").a(xfVar.auw); } xfVar.auw.O(Constants.URL_CAMPAIGN, "plotArea"); if (vqVar.KL.gD()) { wv wvVar = new wv(vqVar.auw, vqVar.KL.pr(), vqVar.aux, vqVar.auy); wvVar.auw.N(Constants.URL_CAMPAIGN, "legend"); if (wvVar.LV.vU()) { int kd = wvVar.LV.kd(); wvVar.auw.N(Constants.URL_CAMPAIGN, "legendPos"); switch (kd) { case 0: str3 = "b"; break; case 1: str3 = "tr"; break; case 2: str3 = "l"; break; case 3: str3 = "r"; break; case 4: str3 = "t"; break; default: str3 = "r"; break; } wvVar.auw.J("val", str3); wvVar.auw.O(Constants.URL_CAMPAIGN, "legendPos"); } if (wvVar.LV.vY()) { wvVar.a(wvVar.LV.vX()); } if (wvVar.LV.oA()) { aco ke2 = wvVar.LV.ke(); wb wbVar3 = new wb(); wbVar3.auE = wvVar.auy; wbVar3.type = 19; new wa(wvVar.auw, ke2, wbVar3).write(Constants.URL_CAMPAIGN); } if (wvVar.LV.rQ()) { vp.a(wvVar.auw, "overlay", wvVar.LV.rP()); } if (wvVar.LV.ql()) { new eth(wvVar.LV.qk(), wvVar.aux, Constants.URL_CAMPAIGN, "spPr").a(wvVar.auw); } if (wvVar.LV.qn()) { new etx(wvVar.LV.qm(), wvVar.aux, Constants.URL_CAMPAIGN, "txPr").a(wvVar.auw); } wvVar.auw.O(Constants.URL_CAMPAIGN, "legend"); } if (vqVar.KL.sk()) { vp.a(vqVar.auw, "plotVisOnly", vqVar.KL.sj()); } if (vqVar.KL.sm()) { int sl = vqVar.KL.sl(); vqVar.auw.N(Constants.URL_CAMPAIGN, "dispBlanksAs"); switch (sl) { case 0: str2 = "span"; break; case 1: str2 = "gap"; break; case 2: str2 = "zero"; break; default: str2 = "zero"; break; } vqVar.auw.J("val", str2); vqVar.auw.O(Constants.URL_CAMPAIGN, "dispBlanksAs"); } if (vqVar.KL.so()) { vp.a(vqVar.auw, "showDLblsOverMax", vqVar.KL.sn()); } if (vqVar.KL.sq()) { wo woVar = new wo(vqVar.auw, vqVar.KL); woVar.auw.N(Constants.URL_CAMPAIGN, "extLst"); woVar.auw.N(Constants.URL_CAMPAIGN, "ext"); woVar.auw.J("uri", "{56B9EC1D-385E-4148-901F-78D8002777C0}"); woVar.auw.M("c16r3", "http://schemas.microsoft.com/office/drawing/2017/03/chart"); if (woVar.KL.sq()) { wp wpVar = new wp(woVar.auw, woVar.KL); wpVar.auw.N("c16r3", "dataDisplayOptions16"); if (wpVar.KL.sq()) { vp.a(wpVar.auw, "c16r3", "dispNaAsBlank", wpVar.KL.sp()); } wpVar.auw.O("c16r3", "dataDisplayOptions16"); } woVar.auw.O(Constants.URL_CAMPAIGN, "ext"); woVar.auw.O(Constants.URL_CAMPAIGN, "extLst"); } vqVar.auw.O(Constants.URL_CAMPAIGN, "chart"); if (this.Yc.ql()) { new eth(this.Yc.qk(), this.aux, Constants.URL_CAMPAIGN, "spPr").a(this.auw); } if (this.Yc.qn()) { new etx(this.Yc.qm(), this.aux, Constants.URL_CAMPAIGN, "txPr").a(this.auw); } if (this.Yc.tQ()) { coj coj6 = this.auw; acd tP = this.Yc.tP(); if (this.aux != null) { str4 = this.aux.bjl(); } vx vxVar = new vx(coj6, tP, str4); vxVar.auw.N(Constants.URL_CAMPAIGN, "externalData"); if (vxVar.auA != null) { vxVar.auw.h("r", "id", vxVar.auA); } else { vxVar.auw.h("r", "id", vxVar.anf.ue()); } if (vxVar.anf.ud()) { vxVar.auw.N(Constants.URL_CAMPAIGN, "autoUpdate"); vxVar.auw.i("val", vxVar.anf.uc()); vxVar.auw.O(Constants.URL_CAMPAIGN, "autoUpdate"); } vxVar.auw.O(Constants.URL_CAMPAIGN, "externalData"); } if (this.Yc.tS()) { wh whVar = new wh(this.auw, this.Yc.tR()); whVar.auw.N(Constants.URL_CAMPAIGN, "printSettings"); if (whVar.YH.xj()) { vz vzVar = new vz(whVar.auw, whVar.YH.xi()); vzVar.auw.N(Constants.URL_CAMPAIGN, "headerFooter"); if (vzVar.YX.wv()) { vzVar.auw.i("alignWithMargins", vzVar.YX.wu()); } if (vzVar.YX.wx()) { vzVar.auw.i("differentOddEven", vzVar.YX.ww()); } if (vzVar.YX.wz()) { vzVar.auw.i("differentFirst", vzVar.YX.wy()); } if (vzVar.YX.wj()) { vzVar.auw.N(Constants.URL_CAMPAIGN, "oddHeader"); vzVar.auw.addText(vzVar.YX.wi()); vzVar.auw.O(Constants.URL_CAMPAIGN, "oddHeader"); } if (vzVar.YX.wl()) { vzVar.auw.N(Constants.URL_CAMPAIGN, "oddFooter"); vzVar.auw.addText(vzVar.YX.wk()); vzVar.auw.O(Constants.URL_CAMPAIGN, "oddFooter"); } if (vzVar.YX.wn()) { vzVar.auw.N(Constants.URL_CAMPAIGN, "evenHeader"); vzVar.auw.addText(vzVar.YX.wm()); vzVar.auw.O(Constants.URL_CAMPAIGN, "evenHeader"); } if (vzVar.YX.wp()) { vzVar.auw.N(Constants.URL_CAMPAIGN, "evenFooter"); vzVar.auw.addText(vzVar.YX.wo()); vzVar.auw.O(Constants.URL_CAMPAIGN, "evenFooter"); } if (vzVar.YX.wr()) { vzVar.auw.N(Constants.URL_CAMPAIGN, "firstHeader"); vzVar.auw.addText(vzVar.YX.wq()); vzVar.auw.O(Constants.URL_CAMPAIGN, "firstHeader"); } if (vzVar.YX.wt()) { vzVar.auw.N(Constants.URL_CAMPAIGN, "firstFooter"); vzVar.auw.addText(vzVar.YX.ws()); vzVar.auw.O(Constants.URL_CAMPAIGN, "firstFooter"); } vzVar.auw.O(Constants.URL_CAMPAIGN, "headerFooter"); } if (whVar.YH.xl()) { coj coj7 = whVar.auw; acw xk = whVar.YH.xk(); coj7.N(Constants.URL_CAMPAIGN, "pageMargins"); if (xk.wH()) { coj7.b("b", xk.b()); } if (xk.wC()) { coj7.b("l", xk.wB()); } if (xk.wE()) { coj7.b("r", xk.wD()); } if (xk.wG()) { coj7.b("t", xk.wF()); } if (xk.wJ()) { coj7.b("header", xk.wI()); } if (xk.wL()) { coj7.b("footer", xk.wK()); } coj7.O(Constants.URL_CAMPAIGN, "pageMargins"); } if (whVar.YH.xn()) { coj coj8 = whVar.auw; acx xm = whVar.YH.xm(); coj8.N(Constants.URL_CAMPAIGN, "pageSetup"); if (xm.wO()) { coj8.r("paperSize", xm.wN()); } if (xm.wQ()) { coj8.J("paperHeight", xm.wP()); } if (xm.wS()) { coj8.J("paperWidth", xm.wR()); } if (xm.wU()) { coj8.r("firstPageNumber", xm.wT()); } if (xm.rg()) { switch (xm.ia()) { case 0: str = CookiePolicy.DEFAULT; break; case 1: str = "portrait"; break; case 2: str = "landscape"; break; default: str = CookiePolicy.DEFAULT; break; } coj8.J("orientation", str); } if (xm.wW()) { coj8.i("blackAndWhite", xm.wV()); } if (xm.wY()) { coj8.i("draft", xm.wX()); } if (xm.xa()) { coj8.i("useFirstPageNumber", xm.wZ()); } if (xm.xc()) { coj8.r("horizontalDpi", xm.xb()); } if (xm.xe()) { coj8.r("verticalDpi", xm.xd()); } if (xm.xg()) { coj8.r("copies", xm.xf()); } coj8.O(Constants.URL_CAMPAIGN, "pageSetup"); } whVar.auw.O(Constants.URL_CAMPAIGN, "printSettings"); } this.auw.O(Constants.URL_CAMPAIGN, "chartSpace"); this.auw.endDocument(); return true; } }